using System;

namespace Framework.Remoting.Testing
{
    public static class ThreadSafeRandom
    {
        private static readonly Random Random = new Random();
        private static readonly object SyncRoot = new object();

        public static int Next(int start, int end)
        {
            lock (SyncRoot)
            {
                return Random.Next(start, end);
            }
        }
    }
}